﻿//2848.与车相交的点
int numberOfPoints(int** nums, int numsSize, int* numsColSize) {
    int arr[101] = { 0 };
    for (int i = 0; i < numsSize; i++)
    {
        int x = nums[i][0];
        int y = nums[i][1];
        for (int j = x; j <= y; j++)
        {
            arr[j]++;
        }
    }

    int ans = 0;
    for (int i = 0; i < 101; i++)
    {
        if (arr[i] > 0)
        {
            ans++;
        }
    }
    return ans;
}